﻿
namespace FastFood.Business.Entities
{
    public partial class Productos
    {
        public decimal costo
        {
            get
            {
                if (this.Productos_Insumos != null)
                {
                    decimal total = 0;
                    foreach (Productos_Insumos detalle in this.Productos_Insumos)
                    {
                        total += detalle.costoTotal;
                    }
                    return MathExpression.Round(total);
                }
                return 0;
            }

        }
    }
}
